package com.atguigu.demo;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.transaction.annotation.EnableTransactionManagement;

// 开启声明式事务功能
@EnableTransactionManagement
// 扫描 Mapper 接口所在的包，目的：为了把 Mapper 接口的实现类（$Proxy44）放入 IOC 容器
@MapperScan(basePackages = "com.atguigu.demo.mapper")
@SpringBootApplication
public class CRUDDemoMainType {

    public static void main(String[] args) {
        SpringApplication.run(CRUDDemoMainType.class, args);
    }

}
